package com.stary.pay.wxpay.api.request;

import java.util.Map;

import com.stary.pay.wxpay.api.WxpayConstants;
import com.stary.pay.wxpay.api.WxpayRequest;
import com.stary.pay.wxpay.api.response.WxpayPayNotifyResponse;
import com.stary.pay.wxpay.api.util.WxpayHashMap;

/**
 * <p>wxpay pay notify request</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2019-5-31
 */
public class WxpayPayNotifyRequest implements WxpayRequest<WxpayPayNotifyResponse> {
	
	/**
	 * 支付结果通知数据
	 */
	private String notifyData;
	
	private boolean isCheckSign = true;
		
	public String getNotifyData() {
		return notifyData;
	}

	public void setNotifyData(String notifyData) {
		this.notifyData = notifyData;
	}
	
	public boolean isCheckSign() {
		return isCheckSign;
	}

	public void setCheckSign(boolean isCheckSign) {
		this.isCheckSign = isCheckSign;
	}

	public String serverDomain() {
		return null;
	}

	public boolean isNeedCert() {
		return false;
	}

	public String getNotifyUrl() {
		return null;
	}
	
	public void setNotifyUrl(String notifyUrl) {}

	public Map<String, String> getTextParams() {
		WxpayHashMap txtParams = new WxpayHashMap();
		txtParams.put(WxpayConstants.NOTIFY_DATA, this.notifyData);
		return txtParams;
	}

	public Class<WxpayPayNotifyResponse> getResponseClass() {		
		return WxpayPayNotifyResponse.class;
	}

}
